#[allow(unused_variables)]
fn main() {
    let ip = IP::V4(127, 0, 0, 1);
    println!("{:#?}", ip);
    ip.call();
    IP::v6();

    let n = Message::NEW(0, 0, 0);
    let b = Message::BLOCK(String::from("hello"));
}
#[derive(Debug)]
enum IP {
    V4(u8, u8, u8, u8),
    V6,
}
#[allow(unused_variables)]
#[allow(dead_code)]
impl IP {
    fn call(&self) {
        println!("call...");
    }
    fn v6() -> IP {
        println!("v6");
        IP::V6
    }
    fn display() {
        println!("ass");
    }
}

#[derive(Debug)]
enum Message {
    NEW(i32, i32, i32),
    BLOCK(String),
}
